package cc.ucanuup.service.base.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cc.ucanuup.service.base.dao.RelationRoleMenusJPA;
import cc.ucanuup.service.base.entity.RelationRoleMenus;
import cc.ucanuup.service.base.inter.RoleMenuService;


/**
 * Description: TODO[描述该类概要功能介绍]
 *
 * @author guwenbin
 * @date 2018年2月6日
 * @version 1.0
 */
@Service
public class RoleMenuServiceImpl implements RoleMenuService {

	@Autowired
	private RelationRoleMenusJPA  relationRoleMenusJPA;

	@Override
	public List<RelationRoleMenus> findRelationRoleMenusByRoleId(String roleId) {

		return relationRoleMenusJPA.findRelationRoleMenusByRoleId(roleId);
	}

	@Override
	public List<RelationRoleMenus> mutilSave(List<RelationRoleMenus> saveList) {

		return relationRoleMenusJPA.save(saveList);
	}

	@Override
	public void mutilDelete(List<RelationRoleMenus> delList) {

		relationRoleMenusJPA.deleteInBatch(delList);;
	}

}
